/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDatabaseDataImportSubRecord;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 数据采集导入子业务对象 isfd_database_data_import_sub_record
 *
 * @author Lion Li
 * @date 2025-05-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDatabaseDataImportSubRecord.class)
public class IsfdDatabaseDataImportSubRecordBo extends BaseEntity {

    /**
     * 自增主键，唯一标识每一个记录
     */
    @NotNull(message = "自增主键，唯一标识每一个记录不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 数据采集主表id
     */
    @NotNull(message = "数据采集主表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long importRecordId;

    /**
     * 导入的表名
     */
    @NotBlank(message = "导入的表名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tableName;

    /**
     * 导入的数据量
     */
    @NotNull(message = "导入的数据量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer importQuantity;

    /**
     * 删除的数据量
     */
    @NotNull(message = "删除的数据量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer deleteQuantity;


}
